#include "BattleLogger.h"
#include "Logger.h"


BattleLogger::BattleLogger()
{
}

BattleLogger* BattleLogger::_BattleLogger = nullptr;

BattleLogger* BattleLogger::getInstance()
{
	if (_BattleLogger == nullptr)
	{
		_BattleLogger = new BattleLogger();
	}
	return _BattleLogger;
}

BattleLogger::~BattleLogger()
{
}

void BattleLogger::destroy()
{
	delete this;
	_BattleLogger = nullptr;
}

void BattleLogger::start()
{
	glog.start();
}

void BattleLogger::setLevel(int level)
{
	glog.setLevel(level);
}

void BattleLogger::setOutputConsole(bool isOutput)
{
	glog.setOutputConsole(isOutput);
}

void BattleLogger::stop()
{
	glog.stop();
}

void BattleLogger::setWriteablePath(const std::string& path)
{
	glog.setWriteablePath(path);
}



